package com.Brave.manager.Demo04;

import java.util.concurrent.ArrayBlockingQueue;

public class CookerS extends Thread {
    private ArrayBlockingQueue< String> bd;

    public CookerS(ArrayBlockingQueue<String> bd){
        this.bd = bd;
    }

    @Override
    public void run() {
        while (true){
            try {
                bd.put("汉堡包");
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
